package org.dean.webapps.projectname.presentation.controller;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.Serializable;

/**
 * Created by IntelliJ IDEA.
 * User: dean
 * Date: 9/9/11
 * Time: 9:40 AM
 * To change this template use File | Settings | File Templates.
 */
@Controller
@Scope(value = "session")
public class OtherController  implements Serializable {

    @RequestMapping(value = "/inbuilding", method = {RequestMethod.POST, RequestMethod.GET})
    public String viewInBuilding(HttpServletRequest request,
                                HttpServletResponse response,
                                ModelMap model){

        return "/error/in_building";
    }

    @RequestMapping(value = "/test_show_page", method = {RequestMethod.POST, RequestMethod.GET})
    public String testShowPage(HttpServletRequest request,
                                HttpServletResponse response,
                                ModelMap model){

        return "/marketplace/received_confirm_v2";
    }
}
